Component({
    properties: {
        maxlength: {
            type: Number,
            value: 1024
        },
        placeholder: {
            type: String,
            value: ""
        },
        content: {
            type: String,
            value: ""
        },
        autofocus: {
            type: Boolean,
            value: !1
        }
    },
    data: {
        inputLength: 1014
    },
    methods: {
        bindContentInput: function(t) {
            var e = t.detail.value;
            this.setData({
                inputLength: this.data.maxlength - e.length
            });
            var n = {
                content: e
            }, a = {};
            this.triggerEvent("inputChange", n, a);
        }
    },
    ready: function() {
        this.setData({
            inputLength: this.data.maxlength - this.data.content.length
        });
    }
});